import request from '@/utils/request';

// 根据编号查送洗 clothCode
export function getClothWithCode(data) {
  return request({
    url: '/park/laundryClothes/queryByCode',
    method: 'get',
    data,
    isJson: false,
  });
}

// 人员登记-编辑
export function editLaundryCode(data) {
  return request({
    url: '/park/laundryPersonnelCode',
    method: 'put',
    data,
    isJson: true,
  });
}

// 人员登记-新增
export function addLaundryCode(data) {
  return request({
    url: '/park/laundryPersonnelCode',
    method: 'post',
    data,
    isJson: true,
  });
}

// 人员列表
export function getLaundryList(data) {
  return request({
    url: '/park/laundryPersonnelCode/listQy',
    method: 'get',
    data,
    isJson: true,
  });
}

// 人员列表-全
export function getLaundryAllCode(data) {
  return request({
    url: '/park/laundryPersonnelCode/listAll',
    method: 'get',
    data,
    isJson: true,
  });
}

// 校验接口
export function netCheckPwd(data) {
  return request({
    url: '/park/laundryPersonnelCode/check',
    method: 'get',
    data,
    isJson: true,
  });
}

// 兑换图片
export function getOssImg(data) {
  return request({
    url: '/park/facialRecognition/' + data,
    method: 'get',
    isJson: true,
  });
}

// 领取提交
export function netLaundryReceive(data) {
  return request({
    url: '/park/laundryReceive',
    method: 'post',
    data,
    isJson: true,
  });
}

// 送洗提交
export function netLaundrySend(data) {
  return request({
    url: '/park/laundrySend',
    method: 'post',
    data,
    isJson: true,
  });
}
